From: Ting-Wei Lan Date: Sat, 6 Jan 2018 18:57:38 +0000 (+0800) Subject: wayland: Use portable sed syntax in gdk/wayland/Makefile.am X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~65 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b68e55ecce38dec47c3f9119e603b81773e5294a;p=gtk%2B3.0.git wayland: Use portable sed syntax in gdk/wayland/Makefile.am Replace non-portable \<, \>, \+ with \(, \), \{, \} to avoid build failure on systems not using GNU sed. https://bugzilla.gnome.org/show_bug.cgi?id=792279 --- diff --git a/gdk/wayland/Makefile.am b/gdk/wayland/Makefile.am index cccb572f15..0b2d4ce27d 100644 --- a/gdk/wayland/Makefile.am +++ b/gdk/wayland/Makefile.am @@ -80,11 +80,11 @@ libgdkwaylandinclude_HEADERS = \ .SECONDEXPANSION: define protostability -$(shell echo $1 | sed 's/.*\(\\|\\).*/\1/') +$(shell echo $1 | sed 's/.*-\(\(un\)\{0,1\}stable\)-.*/\1/') endef define protoname -$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/') +$(shell echo $1 | sed 's/\([a-z\-]\{1,\}\)-[a-z]\{1,\}-v[0-9]\{1,\}/\1/') endef %-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml